
<!DOCTYPE HTML>
<html lang="en" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>查询语言 · InfluxDB中文文档</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="jasper">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-comment/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="data_exploration.html" />
    
    
    <link rel="prev" href="../Write_protocols/line_protocol.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="https://legacy.gitbook.com/book/jasper-zhang1/influxdb" target="_blank" class="custom-link">InfluxDB中文文档</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Introduction/">
            
                <a href="../Introduction/">
            
                    
                    介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../Introduction/installation.html">
            
                <a href="../Introduction/installation.html">
            
                    
                    安装
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../Introduction/getting_start.html">
            
                <a href="../Introduction/getting_start.html">
            
                    
                    入门指南
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../Guide/">
            
                <a href="../Guide/">
            
                    
                    使用指南
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../Guide/writing_data.html">
            
                <a href="../Guide/writing_data.html">
            
                    
                    写入数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../Guide/querying_data.html">
            
                <a href="../Guide/querying_data.html">
            
                    
                    查询数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../Guide/downsampling_and_retention.html">
            
                <a href="../Guide/downsampling_and_retention.html">
            
                    
                    采样和数据保留
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../Guide/hardware_sizing.html">
            
                <a href="../Guide/hardware_sizing.html">
            
                    
                    硬件指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../Guide/https_setup.html">
            
                <a href="../Guide/https_setup.html">
            
                    
                    HTTPS设置
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../Concepts/">
            
                <a href="../Concepts/">
            
                    
                    概念介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../Concepts/key_concepts.html">
            
                <a href="../Concepts/key_concepts.html">
            
                    
                    关键概念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../Concepts/glossary.html">
            
                <a href="../Concepts/glossary.html">
            
                    
                    专业术语
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../Concepts/crosswalk.html">
            
                <a href="../Concepts/crosswalk.html">
            
                    
                    与SQL比较
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../Concepts/insights_tradeoffs.html">
            
                <a href="../Concepts/insights_tradeoffs.html">
            
                    
                    InfluxDB的设计见解和权衡
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../Concepts/schema_and_data_layout.html">
            
                <a href="../Concepts/schema_and_data_layout.html">
            
                    
                    schema设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../Concepts/storage_engine.html">
            
                <a href="../Concepts/storage_engine.html">
            
                    
                    存储引擎
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../Write_protocols/">
            
                <a href="../Write_protocols/">
            
                    
                    写入协议
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../Write_protocols/line_protocol.html">
            
                <a href="../Write_protocols/line_protocol.html">
            
                    
                    行协议
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="1.6" data-path="./">
            
                <a href="./">
            
                    
                    查询语言
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="data_exploration.html">
            
                <a href="data_exploration.html">
            
                    
                    数据查询语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="schema_exploration.html">
            
                <a href="schema_exploration.html">
            
                    
                    schema查询语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="database_management.html">
            
                <a href="database_management.html">
            
                    
                    数据库管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="continuous_queries.html">
            
                <a href="continuous_queries.html">
            
                    
                    连续查询
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="functions.html">
            
                <a href="functions.html">
            
                    
                    函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="math_operators.html">
            
                <a href="math_operators.html">
            
                    
                    数学运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="authentication_and_authorization.html">
            
                <a href="authentication_and_authorization.html">
            
                    
                    认证和授权
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../Troubleshooting/">
            
                <a href="../Troubleshooting/">
            
                    
                    故障排除
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../Troubleshooting/faq.html">
            
                <a href="../Troubleshooting/faq.html">
            
                    
                    FAQ
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../Troubleshooting/system_monitor.html">
            
                <a href="../Troubleshooting/system_monitor.html">
            
                    
                    系统监控
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../Troubleshooting/query_management.html">
            
                <a href="../Troubleshooting/query_management.html">
            
                    
                    查询管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../Troubleshooting/error_messages.html">
            
                <a href="../Troubleshooting/error_messages.html">
            
                    
                    错误信息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >查询语言</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x67E5;&#x8BE2;&#x8BED;&#x8A00;">&#x67E5;&#x8BE2;&#x8BED;&#x8A00;</h1>
<p>&#x672C;&#x90E8;&#x5206;&#x4ECB;&#x7ECD;InfluxQL&#xFF0C;InfluxDB&#x7684;SQL&#x7C7B;&#x67E5;&#x8BE2;&#x8BED;&#x8A00;&#xFF0C;&#x7528;&#x4E8E;&#x4E0E;InfluxDB&#x4E2D;&#x7684;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x4EA4;&#x4E92;&#x3002;</p>
<h2 id="influxql&#x6559;&#x7A0B;">InfluxQL&#x6559;&#x7A0B;</h2>
<p>&#x672C;&#x90E8;&#x5206;&#x7684;&#x524D;&#x4E03;&#x4E2A;&#x6587;&#x6863;&#x63D0;&#x4F9B;&#x4E86;InfluxQL&#x7684;&#x6559;&#x7A0B;&#x5F0F;&#x4ECB;&#x7ECD;&#x3002;&#x4F60;&#x53EF;&#x4EE5;&#x968F;&#x65F6;&#x4E0B;&#x8F7D;&#x6587;&#x6863;&#x76F8;&#x5173;&#x7684;&#x793A;&#x4F8B;&#x6570;&#x636E;&#x3002;</p>
<h3 id="&#x6570;&#x636E;&#x67E5;&#x8BE2;&#x8BED;&#x6CD5;"><a href="data_exploration.html">&#x6570;&#x636E;&#x67E5;&#x8BE2;&#x8BED;&#x6CD5;</a></h3>
<p>&#x6DB5;&#x76D6;InfluxQL&#x7684;&#x67E5;&#x8BE2;&#x8BED;&#x8A00;&#x57FA;&#x7840;&#x77E5;&#x8BC6;&#xFF0C;&#x5305;&#x62EC;<code>SELECT</code>&#x8BED;&#x53E5;&#xFF0C;<code>GROUP BY</code>&#x5B50;&#x53E5;&#xFF0C;<code>INTO</code>&#x5B50;&#x53E5;&#x7B49;&#x3002;&#x53C2;&#x9605;<a href="data_exploration.html">&#x6570;&#x636E;&#x67E5;&#x8BE2;</a>&#x8FD8;&#x53EF;&#x4EE5;&#x4E86;&#x89E3;&#x67E5;&#x8BE2;&#x4E2D;&#x7684;&#x65F6;&#x95F4;&#x8BED;&#x6CD5;&#x548C;&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;&#x3002;</p>
<h3 id="schema&#x67E5;&#x8BE2;&#x8BED;&#x6CD5;"><a href="schema_exploration.html">schema&#x67E5;&#x8BE2;&#x8BED;&#x6CD5;</a></h3>
<p>&#x6DB5;&#x76D6;schema&#x76F8;&#x5173;&#x7684;&#x67E5;&#x8BE2;&#x8BED;&#x6CD5;&#x3002;&#x6709;&#x5173;InfluxQL&#x7684;<code>SHOW</code>&#x67E5;&#x8BE2;&#x7684;&#x8BED;&#x6CD5;&#x8BF4;&#x660E;&#x548C;&#x793A;&#x4F8B;&#x3002;</p>
<h3 id="&#x6570;&#x636E;&#x5E93;&#x7BA1;&#x7406;"><a href="database_management.html">&#x6570;&#x636E;&#x5E93;&#x7BA1;&#x7406;</a></h3>
<p>&#x6DB5;&#x76D6;InfluxQL&#x7528;&#x4E8E;&#x7BA1;&#x7406;InfluxDB&#x4E2D;&#x7684;&#x6570;&#x636E;&#x5E93;&#x548C;&#x5B58;&#x50A8;&#x7B56;&#x7565;&#xFF0C;&#x5177;&#x4F53;&#x6709;&#x521B;&#x5EFA;&#x5220;&#x9664;&#x6570;&#x636E;&#x5E93;&#x548C;&#x5B58;&#x50A8;&#x7B56;&#x7565;&#xFF0C;&#x4EE5;&#x53CA;&#x5220;&#x9664;&#x6570;&#x636E;&#x3002;</p>
<h3 id="&#x51FD;&#x6570;"><a href="functions.html">&#x51FD;&#x6570;</a></h3>
<p>&#x6DB5;&#x76D6;InfluxQL&#x7684;&#x51FD;&#x6570;&#x3002;</p>
<h3 id="continuous-queries"><a href="continuous_queries.html">Continuous Queries</a></h3>
<p>&#x6DB5;&#x76D6;Continuous Queries&#x7684;&#x57FA;&#x672C;&#x8BED;&#x6CD5;&#xFF0C;&#x9AD8;&#x7EA7;&#x8BED;&#x6CD5;&#x548C;&#x5E38;&#x89C1;&#x7528;&#x4F8B;&#x3002; &#x6B64;&#x9875;&#x9762;&#x8FD8;&#x4ECB;&#x7ECD;&#x4E86;&#x5982;&#x4F55;&#x8FDB;&#x884C;<code>SHOW</code>&#x548C;<code>DROP</code> Continuous Queries&#x3002;</p>
<h3 id="&#x6570;&#x5B66;&#x8BA1;&#x7B97;"><a href="math_operators.html">&#x6570;&#x5B66;&#x8BA1;&#x7B97;</a></h3>
<p>&#x6DB5;&#x76D6;InfluxQL&#x4E2D;&#x7684;&#x6570;&#x5B66;&#x8BA1;&#x7B97;&#x3002;</p>
<h3 id="&#x8BA4;&#x8BC1;&#x548C;&#x6388;&#x6743;"><a href="authentication_and_authorization.html">&#x8BA4;&#x8BC1;&#x548C;&#x6388;&#x6743;</a></h3>
<p>&#x4ECB;&#x7ECD;&#x5982;&#x4F55;&#x8BBE;&#x7F6E;&#x8EAB;&#x4EFD;&#x9A8C;&#x8BC1;&#x548C;&#x5982;&#x4F55;&#x9A8C;&#x8BC1;InfluxDB&#x4E2D;&#x7684;&#x8BF7;&#x6C42;&#x3002;&#x6B64;&#x9875;&#x9762;&#x8FD8;&#x63CF;&#x8FF0;&#x4E86;&#x7528;&#x4E8E;&#x7BA1;&#x7406;&#x6570;&#x636E;&#x5E93;&#x7528;&#x6237;&#x7684;&#x4E0D;&#x540C;&#x7528;&#x6237;&#x7C7B;&#x578B;&#x548C;InfluxQL&#x3002;</p>
<h2 id="influxql&#x53C2;&#x8003;"><a href="spec.md">InfluxQL&#x53C2;&#x8003;</a></h2>
<p>InfluxQL&#x53C2;&#x8003;&#x6587;&#x6863;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="../Write_protocols/line_protocol.html" class="navigation navigation-prev " aria-label="Previous page: 行协议">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="data_exploration.html" class="navigation navigation-next " aria-label="Next page: 数据查询语法">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"查询语言","level":"1.6","depth":1,"next":{"title":"数据查询语法","level":"1.6.1","depth":2,"path":"Query_language/data_exploration.md","ref":"Query_language/data_exploration.md","articles":[]},"previous":{"title":"行协议","level":"1.5.1","depth":2,"path":"Write_protocols/line_protocol.md","ref":"Write_protocols/line_protocol.md","articles":[]},"dir":"ltr"},"config":{"plugins":["comment"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"comment":{"highlightCommented":true},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"github":"jasper-zhang/influxdb-document-cn","theme":"default","author":"jasper","pdf":{"pageNumbers":true,"fontSize":16,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"InfluxDB中文文档","language":"en","links":{"sidebar":{"InfluxDB中文文档":"https://legacy.gitbook.com/book/jasper-zhang1/influxdb"},"gitbook":true},"gitbook":"*","description":""},"file":{"path":"Query_language/index.md","mtime":"2019-09-29T09:05:38.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-09-29T09:10:37.143Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-comment/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

